import type { AppRouteModule } from '@/router/types'

import { getParentLayout, LAYOUT } from '@/router/constant'
// import { t } from '@/hooks/web/useI18n';

const _routes: AppRouteModule = {
  path: '/securityManagement',
  name: 'securityManagement',
  component: LAYOUT,
  redirect: '/securityManagement/monitor',
  meta: {
    orderNo: 6,
    icon: 'material-symbols:shield-locked-outline',
    title: '安全管理',
  },
  children: [
    {
      path: 'monitor',
      name: 'securityManagementMonitor',
      meta: {
        title: '安全监测',
      },
      component: () => import('@/views/securityManagement/monitor/index.vue'),
    },
    {
      path: 'report',
      name: 'securityManagementReport',
      meta: {
        title: '安全报表',
      },
      component: () => import('@/views/securityManagement/report/index.vue'),
    },
    {
      path: 'gasAlarm',
      name: 'securityManagementGasAlarm',
      meta: {
        title: '气体告警',
      },
      component: () => import('@/views/securityManagement/gasAlarm/index.vue'),
    },
    {
      path: 'fireAlarm',
      name: 'securityManagementFireAlarm',
      meta: {
        title: '消防告警',
      },
      component: () => import('@/views/securityManagement/fireAlarm/index.vue'),
    },
  ],
}

export default _routes
